//
//  DataManager.swift
//  ADKit
//
//  Created by Adoma on 2020/10/25.
//

import Foundation

/// by ADKit
public struct DataManager {
    
    public static var shared = DataManager()
    
    static let storage = SandboxStorage(name: ".ADKit")
    
    private var storages: [DataStorageType] = [storage]
    
    public mutating func append(storages: [DataStorageType]) {
        self.storages.append(contentsOf: storages)
    }
    
    public func cleanAll() {
        storages.forEach {
            $0.clean()
        }
    }
   
}
